/**
 * Author:   e20160504
 * Date:     2018/6/30 14:06
 * Description:
 */
package com.kevin.demo.exception;

import com.kevin.demo.utils.StrUtil;

public class ToolBoxException  extends RuntimeException {

    private static final long serialVersionUID = 8247610319171014183L;

    public ToolBoxException(Throwable e) {
        super(e.getMessage(), e);
    }

    public ToolBoxException(String message) {
        super(message);
    }

    public ToolBoxException(String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params));
    }

    public ToolBoxException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public ToolBoxException(Throwable throwable, String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params), throwable);
    }
}
